package cn.wsxiot.webdemo.service;

import cn.wsxiot.webdemo.domain.Myfile;
import cn.wsxiot.webdemo.repository.MyfileRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyfileService {

    @Autowired
    private MyfileRepository myfileRepository;

    public String addmyfile(Myfile myfile){
        Myfile myfile1= myfileRepository.save(myfile);
        if(myfile1 != null)
            return "true";
        return "false";
    }

}
